# -*- coding:utf-8 -*-
# author:qiong   time:2021/9/17


from selenium.webdriver.common.by import By
from mkzAPP_test.base.baseApp import basePageElement, baseHandle


# 我的页面对象
class meElement(basePageElement):
    def __init__(self):
        super().__init__()
        self.login_btn = By.ID,"com.xmtj.mkz:id/login_tv"

    def find_login_btn(self):
        return self.wait_getelement(self.login_btn)



# 我的页面操作层
class meHandle(baseHandle):
    def __init__(self):
        self.me_element = meElement()

    # 点击登录/注册按钮
    def click_login_btn(self):
        self.me_element.find_login_btn().click()


# 我的页面业务层

class meProxy():
    def __init__(self):
        self.me_handle = meHandle()

    # 点击跳转登录/注册页面
    def to_login_page(self):
        self.me_handle.click_login_btn()